package cn.tedu.tmall.admin.mall.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class MallCategoryAddParam implements Serializable {
    @ApiModelProperty(value = "类别名称",required = true,dataType = "String")
    @NotBlank(message = "类别名称不得为空！")
    String name;
    @ApiModelProperty(value = "父类id",required = true,dataType = "Long")
    @NotNull(message = "父类id不得为空！")
    Long parentId;
    @ApiModelProperty(value = "是否禁用",example = "1 or 0",required = true,dataType = "Integer")
    @NotNull(message = "禁用选项不得为空！")
    Integer enable;
    @ApiModelProperty(value = "是否显示",example = "1 or 0",required = true,dataType = "Integer")
    @NotNull(message = "显式选项不得为空！")
    Integer isDisplay;
}
